package com.sicnu.websocket.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    private Long id;

    private Long fromUserId;
    private Long toUserId;
    private String content;
    private LocalDateTime timestamp;

    public Message(Long fromUserId, Long toUserId, String content, LocalDateTime timestamp) {
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.content = content;
        this.timestamp = timestamp;
    }
}
